package com.example.analysis.entity;

import java.io.Serializable;

/**
 * competition_list
 * @author 
 */
public class CompetitionList extends CompetitionListKey implements Serializable {
    private Boolean award;

    private String awards;

    private String entrants;

    private String org;

    private static final long serialVersionUID = 1L;

    public Boolean getAward() {
        return award;
    }

    public void setAward(Boolean award) {
        this.award = award;
    }

    public String getAwards() {
        return awards;
    }

    public void setAwards(String awards) {
        this.awards = awards;
    }

    public String getEntrants() {
        return entrants;
    }

    public void setEntrants(String entrants) {
        this.entrants = entrants;
    }

    public String getOrg() {
        return org;
    }

    public void setOrg(String org) {
        this.org = org;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        CompetitionList other = (CompetitionList) that;
        return (this.getCompetitionId() == null ? other.getCompetitionId() == null : this.getCompetitionId().equals(other.getCompetitionId()))
            && (this.getStudentId() == null ? other.getStudentId() == null : this.getStudentId().equals(other.getStudentId()))
            && (this.getAward() == null ? other.getAward() == null : this.getAward().equals(other.getAward()))
            && (this.getAwards() == null ? other.getAwards() == null : this.getAwards().equals(other.getAwards()))
            && (this.getEntrants() == null ? other.getEntrants() == null : this.getEntrants().equals(other.getEntrants()))
            && (this.getOrg() == null ? other.getOrg() == null : this.getOrg().equals(other.getOrg()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getCompetitionId() == null) ? 0 : getCompetitionId().hashCode());
        result = prime * result + ((getStudentId() == null) ? 0 : getStudentId().hashCode());
        result = prime * result + ((getAward() == null) ? 0 : getAward().hashCode());
        result = prime * result + ((getAwards() == null) ? 0 : getAwards().hashCode());
        result = prime * result + ((getEntrants() == null) ? 0 : getEntrants().hashCode());
        result = prime * result + ((getOrg() == null) ? 0 : getOrg().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", award=").append(award);
        sb.append(", awards=").append(awards);
        sb.append(", entrants=").append(entrants);
        sb.append(", org=").append(org);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}